package service;

import dao.saleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeleteSaleService {

    @Autowired
    private saleMapper saleMapper;

    public boolean deleteSale(Integer sId){
        int i = saleMapper.deleteByPrimaryKey(sId);
        if(i > 0){
            return true;
        }
        return false;
    }
}
